<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div,
      p {
        border: solid;
        height: 200px;
        margin: 20px;
      }
    </style>
  </head>
  <body>
    <div id="box">hello box</div>
    <p>hello p1</p>
    <p>hello p2</p>
    <script>
      const a = document.elementFromPoint(100, 20);
      const b = document.elementFromPoint(120, 420);

      console.log(a, b);
    </script>
  </body>
</html>
